﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="CustomAdminPages.aspx.cs" Inherits="Site_CustomAdminPages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <div class="tabPage">
        <div class="actionButtons clearfix">
            <div class="floatRight">
                <acms:ActionButton ID="btnInsert" Icon="Add" Text="Add new Custom Data Page" runat="server" />
            </div>
        </div>
        <telerik:RadGrid ID="grid" SkinID="FormsEdit" DataSourceID="dsPages" AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AutoGenerateEditColumn="false" runat="server">
            <MasterTableView DataKeyNames="Id, ConcurencyId">
                <NoRecordsTemplate>
                    No custom pages have been setup.
                </NoRecordsTemplate>
                <Columns>
                    <acms:RadGridTextBoxColumn DataField="Name" HeaderText="Name" Width="250px" Required="true" />
                    <acms:RadGridDropDownColumn DataField="Section" DataValueField="Section" HeaderText="Section" DataSourceID="dsSections"/>
                    <acms:RadGridTextBoxColumn DataField="ControlPath" HeaderText="ControlPath" Width="250px" Required="true" />
                    <acms:RadGridTextAreaColumn DataField="Notes" HeaderText="Notes" Display="false" Cols="50" Rows="10" />
                    <acms:RadGridSequenceColumn SequenceField="Sequence" />
                    <acms:RadGridEditColumn />
                    <acms:RadGridDeleteColumn />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:CustomAdminPageDataSource id="dsPages" runat="server" />
    <acms:EventDrivenDataSource id="dsSections" runat="server" />
</asp:Content>

